<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/12/9 0009
  Time: 16:10
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>forward</title>
</head>
<body>
<%
    int age2=(Integer)request.getSession().getAttribute("age");
    out.println("session:"+age2);
    int age3=(Integer)application.getAttribute("age");
    out.println("application:"+age3);
    Cookie[] c=request.getCookies();
    for(Cookie co:c){
        String name=co.getName();
        if("age".equals(name)){
            out.println("cookie:"+co.getValue());
        }
    }
%>
</body>
</html>
